#ifndef VARIABLEEVENT_H
#define VARIABLEEVENT_H

#include "CLimitOp.h"

class Trigger;
class GlobalScope;

class VariableEvent {
private:
    Trigger* trigger;
    CLimitOp limitOp;
    double doubleValue;

public:
    VariableEvent(Trigger* trigger, CLimitOp limitOp, double doubleValue);
    Trigger* getTrigger();
    CLimitOp getLimitOp();
    double getDoubleValue();

    bool isMatching(double realValue);

    void fire(GlobalScope& globalScope);
};

#endif